﻿<%@ Page Language="C#" MasterPageFile="~/Common/Master/FrameMain.master" AutoEventWireup="true" Theme="SkinFile" Inherits="Mail_Folder_List" Title="无标题页" Codebehind="List.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="toolbar">
        <ul>
            <li><a id="lnkAdd" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/addnew.gif);">
                &nbsp;</b>
                <asp:Literal ID="Literal1" runat="server" Text="增加"></asp:Literal></span></a></li>
            <li>
                <asp:Button ID="btnRefresh" CssClass="hide" runat="server" Text="Button" 
                    onclick="btnRefresh_Click" /></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
        </div>
    </div>
    <div id="list">
        <asp:GridView ID="gvList" runat="server" Width="100%" AutoGenerateColumns="False"
            OnRowDataBound="gvList_RowDataBound" SkinID="GridView" 
            onrowdeleting="gvList_RowDeleting" 
            onselectedindexchanging="gvList_SelectedIndexChanging">
            <Columns>
                <asp:TemplateField>
                    <ItemStyle CssClass="sp" />
                    <HeaderStyle CssClass="sp" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="文件夹">
                    <ItemTemplate>
                        <asp:HyperLink ID="lnkName" runat="server"><%#Eval("Name") %></asp:HyperLink>
                    </ItemTemplate>
                    <ItemStyle Width="20%" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="未读邮件">
                    <ItemTemplate>
                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("UnReadCount") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="18%" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="总份数">
                    <ItemTemplate>
                        <asp:Label ID="Label3" runat="server" Text='<%# Eval("AllCount") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="18%" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="空间大小">
                    <ItemTemplate>
                        <asp:Label ID="Label4" runat="server" Text='<%# Eval("SpaceCount") %>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle Width="18%" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <asp:LinkButton ID="btnClear" runat="server" CommandName="Select">[清空]</asp:LinkButton>
                        <asp:HyperLink ID="lnkEdit" runat="server" 
                            Visible='<%# Eval("IsCustFolder") %>'>[改名]</asp:HyperLink>
                        <asp:LinkButton ID="btnDelete" runat="server" 
                            Visible='<%# Eval("IsCustFolder") %>' CommandName="Delete">[删除]</asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                </Columns>
            </asp:GridView>
    </div>
</asp:Content>
